package com.hdax.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("cancel_apply")
public class CancelApply implements Serializable {

  private static final long serialVersionUID = 1L;

  /**
   * 编号
   */
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  /**
   * 订单编号
   */
  @TableField("order_id")
  private Integer orderId;
  /**
   * 客户编号
   */
  @TableField("cus_id")
  private Integer cusId;
  /**
   * 客户编号
   */
  @TableField("car_id")
  private Integer carId;
  /**
   * 员工编号
   */
  @TableField("user_id")
  private Integer userId;
  /**
   * 退订金额
   */
  @TableField("price")
  private double price;
  /**
   * 退订原因
   */
  @TableField("cause")
  private String cause;
  /**
   * 处理状态
   */
  @TableField("handle_state")
  private Integer handleState;
  /**
   * 退订状态
   */
  @TableField("cancel_state")
  private Integer cancelState;
  /**
   * 备注
   */
  @TableField("remarks")
  private String remarks;

  @TableField(exist = false)
  private Car car;

  @TableField(exist = false)
  private Customer customer;

  @TableField(exist = false)
  private CusOrder cusOrder;

  @TableField(exist = false)
  private String stringHandleState;

  @TableField(exist = false)
  private String stringCancelState;
}
